package nuc.edu.mapper;

import nuc.edu.entities.Department;
import org.springframework.stereotype.Repository;

import java.util.Collection;


/**
 * Created by 张朝亮
 */
public interface DepartmentMapper {

	/**
	 * 查询所有的部门
	 * @return
	 */
	public Collection<Department> getDepartments();

	/**
	 * 通过id查询部门
	 * @param id
	 * @return
	 */
	public Department getDepartment(Integer id);

	/**
	 * 通过部门的名字查询部门编号
	 * @param dname
	 * @return
	 */
	public Integer getDepartmentByname(String dname);


}
